//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Windows.Media;
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    internal class Path2DArcTo : PathElement
    {
        internal const string xmlName = "arcTo";
        private string hR;
        private string stAng;
        private string swAng;
        private string wR;

        public override PathSegment Segment
        {
            get { throw new NotImplementedException(); }
        }

        internal override void ReadXmlCore(ReadContext context)
        {
            using (ReadContext c = context.Read(xmlName))
            {
                wR = c.GetString("wR");
                hR = c.GetString("hR");
                stAng = c.GetString("stAng");
                swAng = c.GetString("swAng");
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write(xmlName))
            {
                c.SetString("wR", wR );
                c.SetString("hR", hR );
                c.SetString("stAng", stAng );
                c.SetString("swAng", swAng );
            }
        }
    }
}